package com.simple.datax.flow.message;
/** 
 * @Title: EcFlowMessage.java 
 * @Package com.simple.datax.flow.model 
 * @Description: TODO(报文流程信息) 
 * @author tonney 
 * @date 2013-1-5 下午12:10:11 
 * @version V1.0 
 */
public class EcFlowMessage extends BaseEcMessage implements Cloneable{
	EcFlowMessageHead flowMessageHead = null;
	EcFlowMessageBody flowMessageBody = null;
	
	public EcFlowMessage clone() {
		EcFlowMessage obj = null;
		obj = (EcFlowMessage) super.clone();
		if(flowMessageHead!=null){
			flowMessageHead = flowMessageHead.clone();
		}
		if(flowMessageBody!=null){
			flowMessageBody = flowMessageBody.clone();
		}
		return obj;
	}
	
	public EcFlowMessageHead addEcFlowMessageHead(){
		flowMessageHead = new EcFlowMessageHead();
		return flowMessageHead;
	}
	
	public EcFlowMessageBody addEcFlowMessageBody(){
		flowMessageBody = new EcFlowMessageBody();
		return flowMessageBody;
	}

	public EcFlowMessageHead getFlowMessageHead() {
		return flowMessageHead;
	}

	public void setFlowMessageHead(EcFlowMessageHead flowMessageHead) {
		this.flowMessageHead = flowMessageHead;
	}

	public EcFlowMessageBody getFlowMessageBody() {
		return flowMessageBody;
	}

	public void setFlowMessageBody(EcFlowMessageBody flowMessageBody) {
		this.flowMessageBody = flowMessageBody;
	}

}
